#ifndef __CCALL_FUNC_INTERVAL_H__
#define __CCALL_FUNC_INTERVAL_H__

#include "common.h"

class CCallFuncInterval : public CCActionInterval
{
public:
    bool initWithDuration(float duration, SEL_SCHEDULE selector);

    virtual CCObject* copyWithZone(CCZone* pZone);
    virtual void startWithTarget(CCNode *pTarget);
    virtual void update(float time);

public:
    static CCallFuncInterval* actionWithDuration(float duration, SEL_SCHEDULE selector);

    static CCallFuncInterval* create(float duration, SEL_SCHEDULE selector);

protected:
	SEL_SCHEDULE m_selector;
};

#endif  // __CCALL_FUNC_INTERVAL_H__